﻿<Window x:Class="EAL.ProductWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Width="325" Height="190" WindowStyle="SingleBorderWindow" ResizeMode="NoResize" ShowInTaskbar="False" WindowStartupLocation="CenterOwner">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25" />
            <RowDefinition Height="25" />
            <RowDefinition Height="25" />
            <RowDefinition Height="25" />
            <RowDefinition Height="50" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition  Width="100"/>
            <ColumnDefinition  Width="200"/>
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Column="0" Grid.Row="0">Id:</TextBlock>
        <TextBox Grid.Column="1" Background="Black" Grid.Row="0" IsEnabled="False" Text="{Binding Product.Id, Mode=TwoWay}" />
        <TextBlock Grid.Column="0" Grid.Row="1">Name:</TextBlock>
        <TextBox Grid.Column="1" Grid.Row="1" Text="{Binding Product.Name, Mode=TwoWay}" />
        <TextBlock Grid.Column="0" Grid.Row="2">Preis:</TextBlock>
        <TextBox Grid.Column="1" Grid.Row="2" Text="{Binding Product.Price, Mode=TwoWay}" />
        <TextBlock Grid.Column="0" Grid.Row="3">Lagerbestand:</TextBlock>
        <TextBox Grid.Column="1" Grid.Row="3" Text="{Binding Product.Stock, Mode=TwoWay}" />
        <StackPanel Grid.ColumnSpan="2" Grid.Row="4" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
            <Button Name="SaveButton" Click="SaveButton_Click" Margin="5" >Speichern</Button>
            <Button IsCancel="True" Margin="5">Abbrechen</Button>
        </StackPanel>
    </Grid>
</Window>
